package com.ruoyi.pg.evaluate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.pg.evaluate.domain.PgAssessment;
import com.ruoyi.pg.evaluate.vo.PgAssessmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评估Mapper接口
 *
 * @author Ming
 * @date 2025-08-22
 */
public interface PgAssessmentMapper extends BaseMapper<PgAssessment> {

    Page<PgAssessmentVo> queryList(Page<?> page, @Param("entity") PgAssessmentVo entity);

    List<PgAssessmentVo> queryList(@Param("entity") PgAssessmentVo entity);

    PgAssessmentVo queryById(@Param("id") Long id);

    /**
     * 查询最新的一条数据的编号
     *
     * @return
     */
    Long selectNo();
}
